export {};
// ? 数据类型
let isDone: boolean = false; //布尔值

let carLong: number = 10; // 十进制
let hexLiteral: number = 0xf00d; // 十六进制
let binaryLiteral: number = 0b1010; // 二进制
let octalLiteral: number = 0o744; // 八进制

let name: string = "xuzy"; // 字符串

// 如果你想使用模板字符串
let modelString: string = `this is model string , my name is ${name}`;

let list: number[] = [1, 2, 3]; // 数组
let list2: Array<string> = ["1", "a", "哈哈"]; //另一种声明方式

let x: [string, number]; //元组
x = ["2", 2];

// 枚举
enum Color {
  Red = 1,
  Green,
  Blue,
}

let c: Color = Color.Blue;

console.log(c); // 3
console.log(Color[2]); // Blue

/**
 * 枚举内的值会自动加1
 */


